﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Model
{
    [Serializable]
    public class Sale
    {
        [Key]
        public int SaleId { get; set; }
        [ForeignKey("Client")]
        public string ClientId { get; set; }

        public bool Delivered { get; set; }
        public DateTime DateSale { get; set; }
        public virtual Client Client { get; set; }
        public virtual List<SaleDetail> SaleDetails { get; set; } 
    }
}
